<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="WarehouseDetails.aspx.cs" Inherits="Tathata.Web.Administration.Administration_WarehouseDetails" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="Modules/SimpleTextBox.ascx" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        <table class="adminContent">
            <tr>
                <td class="adminTitle">
                    Name:
                </td>
                <td class="adminData">
                    <nopCommerce:SimpleTextBox runat="server" ID="txtName" CssClass="adminInput" ErrorMessage="Name is required">
                    </nopCommerce:SimpleTextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Phone number:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Email:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Fax number:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtFaxNumber" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Address 1:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtAddress1" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Address 2:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtAddress2" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    City:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtCity" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    State / province:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtStateProvince" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Zip / postal code:
                </td>
                <td class="adminData">
                    <asp:TextBox ID="txtZipPostalCode" runat="server" CssClass="adminInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Country:
                </td>
                <td class="adminData">
                    <asp:DropDownList ID="ddlCountry" AutoPostBack="False" CssClass="adminInput" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Created on:
                </td>
                <td class="adminData">
                    <asp:Label ID="lblCreatedOn" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    Updated on:
                </td>
                <td class="adminData">
                    <asp:Label ID="lblUpdatedOn" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Button ID="SaveButton" runat="server" CssClass="adminButton" Text="Save" OnClick="SaveButton_Click">
                    </asp:Button>
                </td>
                <td align="left">
                    <asp:Button ID="DeleteButton" runat="server" CssClass="adminButton" Text="Delete"
                        OnClick="DeleteButton_Click" CausesValidation="false"></asp:Button>
                    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmDeleteButtonExtender" runat="server"
                        TargetControlID="DeleteButton" DisplayModalPopupID="ModalPopupExtenderDelete" />
                    <br />
                    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderDelete" runat="server" TargetControlID="DeleteButton"
                        PopupControlID="pnlDeletePopup" OkControlID="deleteButtonOk" CancelControlID="deleteButtonCancel"
                        BackgroundCssClass="modalBackground" />
                    <asp:Panel ID="pnlDeletePopup" runat="server" Style="display: none; width: 250px;
                        background-color: White; border-width: 2px; border-color: Black; border-style: solid;
                        padding: 20px;">
                        <div style="text-align: center;">
                            <div style="text-align: center;">
                                Are you sure?
                                <br />
                                <br />
                                <asp:Button ID="deleteButtonOk" runat="server" Text="OK" CssClass="adminButton" CausesValidation="false" />
                                <asp:Button ID="deleteButtonCancel" runat="server" Text="Cancel" CssClass="adminButton"
                                    CausesValidation="false" />
                            </div>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
